using UnityEngine;
using UnityEngine.UI;

public class ChapterLevel : MonoBehaviour
{
	[SerializeField]
	private Color m_EnableColor;

	[SerializeField]
	private Color m_DisableColor;

	public Text text;

	[SerializeField]
	private Image[] stars;

	[SerializeField]
	private Sprite starImage;

	[SerializeField]
	private Sprite blingStarImage;

	[SerializeField]
	private float m_Scale;

	public Image lockIcon;

	private Vector3 m_ScaleVector;

	[SerializeField]
	[Range(0.001f, 7f)]
	private float m_Distance;

	[SerializeField]
	private ScrollRect m_ScrollRect;

	public GameObject mask;

	public LevelData levelData;

	public Text physicalText;

	private void Awake()
	{
		m_ScaleVector = Vector3.one * m_Scale;
		m_ScaleVector.z = 1f;
		m_ScrollRect.onValueChanged.AddListener(OnScrollValueChange);
	}

	public void SetStar(int star)
	{
		for (int i = 0; i < stars.Length; i++)
		{
			stars[i].sprite = ((star <= i) ? starImage : blingStarImage);
		}
	}

	public void OnScrollValueChange(Vector2 value)
	{
	}

	public void OnMaskClick()
	{
		TopBarTip.Show(206);
	}
}
